@extends('layouts.layouts')
@section('title')
    <title>后台首页</title>
@endsection
@section('content')
    <div class="content">
        <div class="header">
            <ul class="breadcrumb">
                <li><a href="/balance/index">用户余额</a></li>
                <li class="active">余额列表</li>
            </ul>
        </div>
        <div class="main-content">
            <div class="btn-toolbar list-toolbar">
                <form class="form-inline" action="" method="get">
                    <div class="form-group">
                        <input type="text" class="form-control" name="name" placeholder="用户" value="">
                    </div>
                    
                    
                    <button type="submit" class="btn btn-default">筛选</button>
                </form>
            </div>
            <div class="row">
                <div class="col-sm-12 col-md-12">
                    <div class="panel panel-default">
                        <div class="panel-heading no-collapse">流水列表</div>
                        <table class="table table-bordered table-striped">
                            <thead>
                            <tr>
                                <th>编号</th>
                                <th>用户</th>
                                <th>余额</th>
                                <th>是否冻结</th>
                                <th>冻结金额</th>
                                <th>操作</th>
                               
                            </tr>
                            </thead>
                            <tbody>
                                @foreach($list as $v)
                                    <tr>
                                        <td>{{$v->id}}</td>
                                        <td>{{$v->name}}</td>
                                        <td>{{$v->total}}</td>
                                        <td>@if($v->is_frozen == 1) 正常 @else 冻结 @endif</td>
                                        <td>{{$v->frozen_total}}</td>
                                        <td><a href="/balance/detail?id={{$v->user_id}}">查看详情</a></td>
                                    </tr>
                                @endforeach
                            </tbody>

                        </table>

                    </div>
                </div>
            </div>
            {{ $list->links() }}
        </div>
    </div>
@endsection